package org.springframework.webflow.wanda;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "Article")
public class Article {

    private WandaUser owner;
    private String title;
    private String content;

    // private Hashtable<String, Tag> tags;
    // private Hashtable<String, Comment> comments;

    @ManyToOne()
    @JoinColumn(name = "username")
    public WandaUser getOwner() {
	return owner;
    }

    public void setOwner(WandaUser owner) {
	this.owner = owner;
    }

    @Id
    public String getTitle() {
	return title;
    }

    public void setTitle(String title) {
	this.title = title;
    }

    public String getContent() {
	return content;
    }

    public void setContent(String content) {
	this.content = content;
    }

}
